package com.itmk.business.contact.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itmk.business.contact.entity.Contact;
import com.itmk.business.contact.mapper.ContactMapper;
import com.itmk.business.contact.service.ContactService;
import com.itmk.vo.req.ContactReqVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.ws.soap.Addressing;
import java.util.List;

@Service
public class ContactServiceImpl extends ServiceImpl<ContactMapper, Contact>
        implements ContactService {

    @Autowired
    private ContactMapper contactMapper;

    @Override
    public List<Object> getContactsByProcedure(ContactReqVO vo) {
        return this.baseMapper.getContactsByProcedure(vo);
    }

    @Override
    public Contact saveContact(Contact c) {
        this.contactMapper.insert(c);
        return c;
    }
}
